package com.xiaodimall.backsys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaodimall.backsys.pojo.Order;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
* @author 32350
* @description 针对表【tb_order(订单表)】的数据库操作Mapper
* @createDate 2022-12-01 16:10:33
* @Entity com.xiaodimall.backsys.pojo.Order
*/
public interface AdminOrderMapper extends BaseMapper<Order> {
    @Select("select goods_name from tb_order_item where order_id = #{orderId}")
    List<String> selectOrderGoodsList(Long orderId);

    @Update("update tb_order set order_status = #{status} where order_id = #{id}")
    Integer updateOrderStatus(Integer id,Integer status);
}
